﻿using MvcApplication.Entity;
using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MvcApplication.Data.Mapping
{
    public class PictureBank_Mapping : EntityTypeConfiguration<PictureBank>
    {
        public PictureBank_Mapping()
        {
            this.HasKey(t => t.ID);
            this.ToTable("PictureBank");

            this.HasRequired(t => t.Picture).WithMany().HasForeignKey(t => t.PictureID);
        }
    }
}
